package com.yyfax.pay.common.enums;

/**
 * 富友存管提现方式
 * 
 * @author buyi
 * @date 2017-11-28 16:40:28
 * @since v1.0.0
 */
public enum FuiouDepositWithdrawCashWay {

	/**
	 * T+0
	 */
	T0("0"),
	/**
	 * T+1
	 */
	T1("1");
	private String value;

	private FuiouDepositWithdrawCashWay(String value) {
		this.value = value;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public boolean isValue(String value) {
		return getValue().equals(value);
	}

	public static FuiouDepositWithdrawCashWay from(String value) {
		for (FuiouDepositWithdrawCashWay type : FuiouDepositWithdrawCashWay.values()) {
			if (type.isValue(value)) {
				return type;
			}
		}

		return null;
	}

}
